﻿@{
    ViewData["Title"] = "Index";
}

@model IEnumerable<OnlineStore.Models.User>
<h1>用户信息</h1>

<div>
    <table class="table">
        <thead>
        <tr>
            <th>用户名</th>
            <th>用户邮箱</th>
            <th>用户手机号</th>
            <th>用户类型</th>
        </tr>
        </thead>
        <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>@item.Name</td>
                <td>@item.Email</td>
                <td>@item.Phone</td>
                <td>@item.Role</td>
            </tr>
        }
        </tbody>
    </table>
</div>

